package com.fumihiko.modules.jxxm.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.fumihiko.modules.jxxm.entity.OldWorkerEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 *
 * @author hanwenpeng
 * @email devilzwy@gmail.com
 * @date 2022-03-30 15:36:34
 */
@Mapper
public interface OldWorkerDao extends BaseMapper<OldWorkerEntity> {

    List<OldWorkerEntity> getName(String query);

    List<OldWorkerEntity> getAllList();

    List<String> queryRepeatList();

    List<OldWorkerEntity> listDeathExcel(@Param(Constants.WRAPPER) QueryWrapper<OldWorkerEntity> queryWrapper);

    void removeByState(Long[] ids);

    void recoveryById(Long[] ids);

    List<OldWorkerEntity> listExcel();
}
